#coding: utf-8
'''
Работа с декораторами
'''

def decor(func):
    def tmp(*args):
        print ('begin decorator')
        function = func(*args)
        print ('end decorator')
        return function
    return tmp

@decor
def func(first, second, third, fourth):
    print ('this is function')

if __name__ == '__main__':
    print ('first step')
    func(1, 2, 3, 4)



